// 1 10 2 20 3 30
new Promise(function (resolve) {resolve(1)
}).then(value => {
	console.log(value);
	return 2;
}).then(value => {
	console.log(value);
	return 3
}).then(value=>{
	console.log(value);
})
new Promise(function (resolve) {resolve(10)
}).then(value => {
	console.log(value);
	return 20;
}).then(value => {
	console.log(value);
	return 30;
}).then(value=>{
	console.log(value);
})